package com.heu.blood.application.service.impl;

import com.heu.blood.common.utils.PageUtils;
import com.heu.blood.common.utils.Query;
import org.springframework.stereotype.Service;
import java.util.Map;
import com.baomidou.mybatisplus.core.conditions.query.QueryWrapper;
import com.baomidou.mybatisplus.core.metadata.IPage;
import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;


import com.heu.blood.application.dao.BloodApplicationItemDao;
import com.heu.blood.application.entity.BloodApplicationItemEntity;
import com.heu.blood.application.service.BloodApplicationItemService;


@Service("bloodApplicationItemService")
public class BloodApplicationItemServiceImpl extends ServiceImpl<BloodApplicationItemDao, BloodApplicationItemEntity> implements BloodApplicationItemService {

    @Override
    public PageUtils queryPage(Map<String, Object> params) {
        IPage<BloodApplicationItemEntity> page = this.page(
                new Query<BloodApplicationItemEntity>().getPage(params),
                new QueryWrapper<BloodApplicationItemEntity>()
        );

        return new PageUtils(page);
    }

}